package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 肉鸡成长记录对象 tb_chicken_growth_records
 * 
 * @author codeman
 * @date 2024-05-07
 */
public class TbChickenGrowthRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID（主键，自增） */
    private Long recordId;

    /** 饲养员 */

    private Long userId;
    @Excel(name = "饲养员")
    private String userName;

    /** 肉鸡信息 */

    private Long chickenId;
    @Excel(name = "肉鸡信息")
    private String chickenNo;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date growthDate;

    /** 体重（单位：千克） */
    @Excel(name = "体重", readConverterExp = "单=位：千克")
    private BigDecimal weight;

    /** 饲料消耗（单位：千克或克） */
    @Excel(name = "饲料消耗", readConverterExp = "单=位：千克或克")
    private BigDecimal feedConsumption;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setChickenId(Long chickenId) 
    {
        this.chickenId = chickenId;
    }

    public Long getChickenId() 
    {
        return chickenId;
    }
    public void setGrowthDate(Date growthDate) 
    {
        this.growthDate = growthDate;
    }

    public Date getGrowthDate() 
    {
        return growthDate;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setFeedConsumption(BigDecimal feedConsumption) 
    {
        this.feedConsumption = feedConsumption;
    }

    public BigDecimal getFeedConsumption() 
    {
        return feedConsumption;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getChickenNo()
    {
        return chickenNo;
    }

    public void setChickenNo(String chickenNo)
    {
        this.chickenNo = chickenNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("chickenId", getChickenId())
            .append("growthDate", getGrowthDate())
            .append("weight", getWeight())
            .append("feedConsumption", getFeedConsumption())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
